package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 3:08:52 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbConcepto generated by hbm2java
 */
@Entity
@Table(name = "TB_CONCEPTO", schema = "CATALOGOS")
public class TbConcepto implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String cconcepto;
	private String cusuario;
	private String dconcepto;
	private String sconcepto;
	private Date fhingreso;
	private Integer bstatus;
	private Set<TbTasacionObligacion> tbTasacionObligacions = new HashSet<TbTasacionObligacion>(
			0);
	private Set<TbTransaccion> tbTransaccions = new HashSet<TbTransaccion>(0);

	public TbConcepto() {
	}

	public TbConcepto(String cconcepto, String cusuario, String dconcepto,
			Date fhingreso, Integer bstatus) {
		this.cconcepto = cconcepto;
		this.cusuario = cusuario;
		this.dconcepto = dconcepto;
		this.fhingreso = fhingreso;
		this.bstatus = bstatus;
	}

	public TbConcepto(String cconcepto, String cusuario, String dconcepto,
			String sconcepto, Date fhingreso, Integer bstatus,
			Set<TbTasacionObligacion> tbTasacionObligacions,
			Set<TbTransaccion> tbTransaccions) {
		this.cconcepto = cconcepto;
		this.cusuario = cusuario;
		this.dconcepto = dconcepto;
		this.sconcepto = sconcepto;
		this.fhingreso = fhingreso;
		this.bstatus = bstatus;
		this.tbTasacionObligacions = tbTasacionObligacions;
		this.tbTransaccions = tbTransaccions;
	}

	@Id
	@Column(name = "C_CONCEPTO", unique = true, nullable = false, length = 3)
	public String getCconcepto() {
		return this.cconcepto;
	}

	public void setCconcepto(String cconcepto) {
		this.cconcepto = cconcepto;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Column(name = "D_CONCEPTO", nullable = false, length = 200)
	public String getDconcepto() {
		return this.dconcepto;
	}

	public void setDconcepto(String dconcepto) {
		this.dconcepto = dconcepto;
	}

	@Column(name = "S_CONCEPTO", length = 50)
	public String getSconcepto() {
		return this.sconcepto;
	}

	public void setSconcepto(String sconcepto) {
		this.sconcepto = sconcepto;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "B_STATUS", nullable = false, precision = 1, scale = 0)
	public Integer getBstatus() {
		return this.bstatus;
	}

	public void setBstatus(Integer bstatus) {
		this.bstatus = bstatus;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbConcepto")
	public Set<TbTasacionObligacion> getTbTasacionObligacions() {
		return this.tbTasacionObligacions;
	}

	public void setTbTasacionObligacions(
			Set<TbTasacionObligacion> tbTasacionObligacions) {
		this.tbTasacionObligacions = tbTasacionObligacions;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbConcepto")
	public Set<TbTransaccion> getTbTransaccions() {
		return this.tbTransaccions;
	}

	public void setTbTransaccions(Set<TbTransaccion> tbTransaccions) {
		this.tbTransaccions = tbTransaccions;
	}

}
